package com.achievement.service.author;

import com.achievement.domain.dto.author.PatentAuthorDTO;
import com.achievement.domain.entity.author.PatentAuthorEntity;
import com.achievement.domain.vo.author.PatentAuthorVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface IPatentAuthorService extends IService<PatentAuthorEntity>
{
    List<PatentAuthorEntity> getListByConditions(PatentAuthorDTO dto);
    PatentAuthorVO getInfoById(String id);

    boolean addOrUpdate(List<PatentAuthorDTO> list,String patentId);

    boolean add(PatentAuthorDTO dto);
    boolean addBatch(List<PatentAuthorDTO> list,String patentId);

    boolean update(PatentAuthorDTO dto);

    boolean batchRemove(List<String> ids);

    List<PatentAuthorVO> getListByPatentId(String patentId);

    boolean batchRemoveByPatentIds(List<String> patentIds);

}
